﻿using System;
using System.Collections.Generic;
using System.Text;
using Blazing.BusinessObjects.Cms;
using BusinessObjectTests;
using Blazing.BusinessObjects.Widgets;

using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using TestCleanup = NUnit.Framework.TearDownAttribute;
using ClassInitialize = NUnit.Framework.TestFixtureSetUpAttribute;
using ClassCleanup = NUnit.Framework.TestFixtureTearDownAttribute;

namespace Blazing.BusinessObjects.Tests
{
    [TestClass]
    public class WidgetTests : NHibernateInMemoryTestFixtureBase
    {
        [TestMethod]
        public void CanSaveWidget()
        {
            Widget w = BusinessObjectFactory.CreateAndFillWidget();
            w.Site = BusinessObjectFactory.CreateAndFillSite();
            w.Site.Save();

            w.Save();
        }
    }
}
